package com.epam.mycollections.interfaces;

import java.util.Iterator;

/**
 * Interface for my implementation of Maps
 * @author DruidKuma
 * @version 1.0 Build 26.04.2014
 */
public interface MyMap<K,V> {
    void clear();
    boolean containsKey(K key);
    boolean containsValue(V value);
    V get(K key);
    boolean isEmpty();
    Entry<K,V> put(K key, V value);
    Entry<K,V> remove(K key);
    int size();
    Iterator<Entry<K,V>> entryIterator();

    public interface Entry<K,V> {
        K getKey();
        V getValue();
        V setValue(V value);
    }
}
